package entity;

import java.util.List;

/**
 * Created by Mr.xingkong on 2016/1/13.
 */
public class TotalListEntity
{

    /**
     * code : 1000
     * msg : 请求成功
     * data : {"page":0,"pageSize":1,"itemCount":7,"pList":[{"productId":11328,"title":"香港进口 出前一丁方便面（猪骨浓汤味）100g*5包","imgUrl":"http://img03.taotaosou.cn/size/image15/M04/05/7C/wKgDtlXr4SQIAAAAABWX8gEE9LwAAIkqQCVFKEAFZgK997.jpg","price":1950,"priceStr":"19.50","originalPrice":2850,"originalPriceStr":"28.50","salesVolume":4},{"productId":11277,"title":"韩国进口 ZEK芝士鳕鱼肠 105g","imgUrl":"http://img.taotaosou.cn/size/image15/M02/07/30/wKgDt1XvlL0IAAAAABXSpJNRwEYAALO-gJgXMwAFdK8161.jpg","price":1000,"priceStr":"10.00","originalPrice":1500,"originalPriceStr":"15.00","salesVolume":44},{"productId":11317,"title":"明珠鱼片王五连包 6g*5","imgUrl":"http://img03.taotaosou.cn/size/image15/M02/06/4D/wKgDtlXuliQIAAAAABX3cdmD3Z8AAJ2HwBokEoAFfeJ590.jpg","price":600,"priceStr":"6.00","originalPrice":900,"originalPriceStr":"9.00","salesVolume":25},{"productId":11326,"title":"香港进口  出前一丁方便面（鸡蓉味）100g*5包","imgUrl":"http://img02.taotaosou.cn/size/image15/M06/06/3F/wKgDt1Xuh5QIAAAAAABSjGApveYAAJwqgGk8WUAAFKk753.jpg","price":1950,"priceStr":"19.50","originalPrice":2775,"originalPriceStr":"27.75","salesVolume":0},{"productId":11219,"title":"韩国进口 海牌 烤海苔2g*10休闲食品 零食（10连包）","imgUrl":"http://img.taotaosou.cn/size/image15/M00/05/7E/wKgDt1Xr6RwIAAAAAACJfSsnomwAAIlmQP_XHsAAImV347.jpg","price":1090,"priceStr":"10.90","originalPrice":1575,"originalPriceStr":"15.75","salesVolume":20},{"productId":11327,"title":"香港进口 出前一丁方便面（麻油味）100g*5包","imgUrl":"http://img.taotaosou.cn/size/image15/M0B/05/7A/wKgDt1Xr2iYIAAAAABWbElbcqFoAAIjrQEugG0AFZsq874.jpg","price":1950,"priceStr":"19.50","originalPrice":2850,"originalPriceStr":"28.50","salesVolume":1},{"productId":11332,"title":"俏嘴巴风味豆干 独立小包 混合装 500g（约18个）","imgUrl":"http://img01.taotaosou.cn/size/image15/M08/06/4C/wKgDt1XulU0IAAAAAAB4pcvWN8sAAJ1zwFzjwIAAHi9198.jpg","price":1250,"priceStr":"12.50","originalPrice":1875,"originalPriceStr":"18.75","salesVolume":5}]}
     */

    private int code;
    private String msg;
    /**
     * page : 0
     * pageSize : 1
     * itemCount : 7
     * pList : [{"productId":11328,"title":"香港进口 出前一丁方便面（猪骨浓汤味）100g*5包","imgUrl":"http://img03.taotaosou.cn/size/image15/M04/05/7C/wKgDtlXr4SQIAAAAABWX8gEE9LwAAIkqQCVFKEAFZgK997.jpg","price":1950,"priceStr":"19.50","originalPrice":2850,"originalPriceStr":"28.50","salesVolume":4},{"productId":11277,"title":"韩国进口 ZEK芝士鳕鱼肠 105g","imgUrl":"http://img.taotaosou.cn/size/image15/M02/07/30/wKgDt1XvlL0IAAAAABXSpJNRwEYAALO-gJgXMwAFdK8161.jpg","price":1000,"priceStr":"10.00","originalPrice":1500,"originalPriceStr":"15.00","salesVolume":44},{"productId":11317,"title":"明珠鱼片王五连包 6g*5","imgUrl":"http://img03.taotaosou.cn/size/image15/M02/06/4D/wKgDtlXuliQIAAAAABX3cdmD3Z8AAJ2HwBokEoAFfeJ590.jpg","price":600,"priceStr":"6.00","originalPrice":900,"originalPriceStr":"9.00","salesVolume":25},{"productId":11326,"title":"香港进口  出前一丁方便面（鸡蓉味）100g*5包","imgUrl":"http://img02.taotaosou.cn/size/image15/M06/06/3F/wKgDt1Xuh5QIAAAAAABSjGApveYAAJwqgGk8WUAAFKk753.jpg","price":1950,"priceStr":"19.50","originalPrice":2775,"originalPriceStr":"27.75","salesVolume":0},{"productId":11219,"title":"韩国进口 海牌 烤海苔2g*10休闲食品 零食（10连包）","imgUrl":"http://img.taotaosou.cn/size/image15/M00/05/7E/wKgDt1Xr6RwIAAAAAACJfSsnomwAAIlmQP_XHsAAImV347.jpg","price":1090,"priceStr":"10.90","originalPrice":1575,"originalPriceStr":"15.75","salesVolume":20},{"productId":11327,"title":"香港进口 出前一丁方便面（麻油味）100g*5包","imgUrl":"http://img.taotaosou.cn/size/image15/M0B/05/7A/wKgDt1Xr2iYIAAAAABWbElbcqFoAAIjrQEugG0AFZsq874.jpg","price":1950,"priceStr":"19.50","originalPrice":2850,"originalPriceStr":"28.50","salesVolume":1},{"productId":11332,"title":"俏嘴巴风味豆干 独立小包 混合装 500g（约18个）","imgUrl":"http://img01.taotaosou.cn/size/image15/M08/06/4C/wKgDt1XulU0IAAAAAAB4pcvWN8sAAJ1zwFzjwIAAHi9198.jpg","price":1250,"priceStr":"12.50","originalPrice":1875,"originalPriceStr":"18.75","salesVolume":5}]
     */

    private DataEntity data;

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private int page;
        private int pageSize;
        private int itemCount;
        /**
         * productId : 11328
         * title : 香港进口 出前一丁方便面（猪骨浓汤味）100g*5包
         * imgUrl : http://img03.taotaosou.cn/size/image15/M04/05/7C/wKgDtlXr4SQIAAAAABWX8gEE9LwAAIkqQCVFKEAFZgK997.jpg
         * price : 1950
         * priceStr : 19.50
         * originalPrice : 2850
         * originalPriceStr : 28.50
         * salesVolume : 4
         */

        private List<PListEntity> pList;

        public void setPage(int page) {
            this.page = page;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public void setItemCount(int itemCount) {
            this.itemCount = itemCount;
        }

        public void setPList(List<PListEntity> pList) {
            this.pList = pList;
        }

        public int getPage() {
            return page;
        }

        public int getPageSize() {
            return pageSize;
        }

        public int getItemCount() {
            return itemCount;
        }

        public List<PListEntity> getPList() {
            return pList;
        }

        public static class PListEntity {
            private int productId;
            private String title;
            private String imgUrl;
            private int price;
            private String priceStr;
            private int originalPrice;
            private String originalPriceStr;
            private int salesVolume;

            public void setProductId(int productId) {
                this.productId = productId;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setImgUrl(String imgUrl) {
                this.imgUrl = imgUrl;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public void setPriceStr(String priceStr) {
                this.priceStr = priceStr;
            }

            public void setOriginalPrice(int originalPrice) {
                this.originalPrice = originalPrice;
            }

            public void setOriginalPriceStr(String originalPriceStr) {
                this.originalPriceStr = originalPriceStr;
            }

            public void setSalesVolume(int salesVolume) {
                this.salesVolume = salesVolume;
            }

            public int getProductId() {
                return productId;
            }

            public String getTitle() {
                return title;
            }

            public String getImgUrl() {
                return imgUrl;
            }

            public int getPrice() {
                return price;
            }

            public String getPriceStr() {
                return priceStr;
            }

            public int getOriginalPrice() {
                return originalPrice;
            }

            public String getOriginalPriceStr() {
                return originalPriceStr;
            }

            public int getSalesVolume() {
                return salesVolume;
            }
        }
    }
}
